import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
import utils from "./assets/utils/utils";

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.prototype.$utils = utils
Vue.config.productionTip = false


import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)


// 仅在开发环境或根据需要启用 vConsole
// if (process.env.NODE_ENV === 'development' || process.env.VUE_APP_ENABLE_VCONSOLE === 'true') {

// import VConsole from 'vconsole';
//
// const vConsole = new VConsole();
// console.log('vConsole is enabled');

// }
/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
